/*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2011.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Telemetry file stream.

-------------------------------------------------------------------------
History:
- 12:05:2011: Created by Paul Slinger

*************************************************************************/

#ifndef __TELEMETRYFILESTREAM_H__
#define __TELEMETRYFILESTREAM_H__

#include "ITelemetryStream.h"

namespace Telemetry
{
	class CFileStream : public Telemetry::IStream
	{
		public:

			CFileStream();

			~CFileStream();

			bool Init(const string &fileName);

			void Shutdown();

			void Release();

			void Write(const uint8 *pData, size_t size);

			static const string ms_defaultDir, ms_defaultExtension;

		private:

			void FormatFileName(string &fileName) const;

			string GetTimeStamp() const;

			FILE	*m_pFile;
	};
}

#endif //__TELEMETRYFILESTREAM_H__